#if !defined(AFX_EDITTEACHERPAGE_H__F35032A3_18A8_11D6_8D1A_91CDB5575370__INCLUDED_)
#define AFX_EDITTEACHERPAGE_H__F35032A3_18A8_11D6_8D1A_91CDB5575370__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// EditTeacherPage.h : header file
#include "TeacherInformationset.h"
//

/////////////////////////////////////////////////////////////////////////////
// CEditTeacherPage dialog

class CEditTeacherPage : public CPropertyPage
{
	DECLARE_DYNCREATE(CEditTeacherPage)

// Construction
public:
	CEditTeacherPage();
	~CEditTeacherPage();
private:
	CTeacherInformationset* m_pTeacherset;
	CDatabase* m_database;

// Dialog Data
	//{{AFX_DATA(CEditTeacherPage)
	enum { IDD = IDD_EDIT_TEACHER };
	CEdit	m_EditTeacherNumber;
	CEdit	m_EditTeacherName;
	CEdit	m_EditSex;
	CEdit	m_EditBirthday;
	BOOL	m_Sex;
	CString	m_TeacherName;
	int		m_TeacherNumber;
	CString	m_Birthday;
	//}}AFX_DATA


// Overrides
	// ClassWizard generate virtual function overrides
	//{{AFX_VIRTUAL(CEditTeacherPage)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL
	virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);

// Implementation
protected:
	// Generated message map functions
	//{{AFX_MSG(CEditTeacherPage)
	virtual BOOL OnInitDialog();
	afx_msg void OnAdd();
	afx_msg void OnDel();
	afx_msg void OnEdit();
	afx_msg void OnFirst();
	afx_msg void OnLast();
	afx_msg void OnNext();
	afx_msg void OnPrev();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	void SetValue();
	void GetValue();
	BOOL IsLastRecord();
	BOOL IsFirstRecord();
	void ClearEditText();
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_EDITTEACHERPAGE_H__F35032A3_18A8_11D6_8D1A_91CDB5575370__INCLUDED_)
